# opencv
find_package(OpenCV)

include_directories(${CMAKE_CURRENT_LIST_DIR}/../../common)
include_directories(${CMAKE_CURRENT_LIST_DIR}/../single-thread/include)

file(GLOB srcs ${CMAKE_CURRENT_LIST_DIR}/src/*.cpp)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)

add_library(multi-thread-dispatcher STATIC ${srcs})
target_link_libraries(multi-thread-dispatcher ${OpenCV_LIBS} single-thread-dispatcher multi-thread-tracker)
target_link_libraries(multi-thread-dispatcher debug caffed optimized caffe)

add_executable(multi-dispatcher-test ${CMAKE_CURRENT_LIST_DIR}/main.cpp)
target_link_libraries(multi-dispatcher-test multi-thread-dispatcher ${OpenCV_LIBS})